package cn.itcast.Util;

import java.io.File;

/**
 * 清理log4j
 * @author 16604
 *
 */
public class clear {
	
	public static void main(String[] args) {
		
		File file = new File("D:\\workspace\\blog.day01\\example.log");
		
		file.delete();
		
		if(!file.exists()) {
			System.out.println("文件已删除");
		}
		
	}
	
}
